//
//  Region.swift
//  Automobile
//
//  Created by erkebulan elzhan on 7/25/20.
//  Copyright © 2020 erkebulan elzhan. All rights reserved.
//

import Foundation


struct City {
    var id: Int
    var name: String
    
    var children: [City]?
    
    
    
    
//    static func getRegions () -> [Region] {
//        let almaty = Region(name: "Алматинская область", children: [Region(name: "Алматы", children: nil)])
//        let pavlodar = Region(name: "Павлодарская область",
//                              children: [
//                                Region(name: "Павлодар", children: nil),
//                                Region(name: "Аксу", children: nil),
//                                Region(name: "Экибастуз", children: nil)
//                              ])
//        let astana = Region(name: "Акмолинская область", children: [Region(name: "Астана", children: nil)])
//        let kazakhstan = Region(name: "Казахстан", children: [almaty, pavlodar, astana])
//        return [ kazakhstan, almaty, pavlodar, astana ]
//    }
}
